<template>
  <div>
      <!-- 二级路由出口 -->
      <router-view></router-view>
      <div class="scroll"></div>
      <footer>
          <router-link to="/index/home" active-class="select">首页</router-link>
          <router-link to="/index/cate" active-class="select">分类</router-link>
          <router-link to="/index/cart" active-class="select">购物车</router-link>
          <router-link to="/index/mime" active-class="select">我的</router-link>
      </footer>
  </div>
</template>

<script>
export default {

}
</script>

<style>
footer{
    width:100vw;
    height:0.8rem;
    position: fixed;
    bottom:0;
    left:0;
    display: flex;
}
footer a{
    flex:1;
    text-align: center;
    line-height: 0.8rem;
    color:#333;
}
.select{
    background: orange;
    color: white;
}
.scroll {
    height: 800px;
    background-color: #f0f0f0;
}
</style>